package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.PlanSchedule;
import com.zcxy360.sandtable.domain.PlanScheduleExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PlanScheduleMapper {
	
//	
	List<Map<String,Object>> listForCompletion(@Param("courseId")Integer courseId,@Param("userId")Integer userId,@Param("unitId")Integer unitId);
//
	
    long countByExample(PlanScheduleExample example);

    int deleteByExample(PlanScheduleExample example);

    int deleteByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vplanId") Integer vplanId);

    int insert(PlanSchedule record);

    int insertSelective(PlanSchedule record);

    List<PlanSchedule> selectByExample(PlanScheduleExample example);

    PlanSchedule selectByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vplanId") Integer vplanId);

    int updateByExampleSelective(@Param("record") PlanSchedule record, @Param("example") PlanScheduleExample example);

    int updateByExample(@Param("record") PlanSchedule record, @Param("example") PlanScheduleExample example);

    int updateByPrimaryKeySelective(PlanSchedule record);

    int updateByPrimaryKey(PlanSchedule record);
}